/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package fr.smile.liferay.portlet.news.model;

import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;

import java.io.Serializable;

import java.util.Date;

/**
 * The base model interface for the NewsFlag service. Represents a row in the &quot;News_NewsFlag&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This interface and its corresponding implementation {@link fr.smile.liferay.portlet.news.model.impl.NewsFlagModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link fr.smile.liferay.portlet.news.model.impl.NewsFlagImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this interface directly. All methods that expect a news flag model instance should use the {@link NewsFlag} interface instead.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see NewsFlag
 * @see fr.smile.liferay.portlet.news.model.impl.NewsFlagImpl
 * @see fr.smile.liferay.portlet.news.model.impl.NewsFlagModelImpl
 * @generated
 */
public interface NewsFlagModel extends BaseModel<NewsFlag> {
	/**
	 * Gets the primary key of this news flag.
	 *
	 * @return the primary key of this news flag
	 */
	public long getPrimaryKey();

	/**
	 * Sets the primary key of this news flag
	 *
	 * @param pk the primary key of this news flag
	 */
	public void setPrimaryKey(long pk);

	/**
	 * Gets the flag id of this news flag.
	 *
	 * @return the flag id of this news flag
	 */
	public long getFlagId();

	/**
	 * Sets the flag id of this news flag.
	 *
	 * @param flagId the flag id of this news flag
	 */
	public void setFlagId(long flagId);

	/**
	 * Gets the user id of this news flag.
	 *
	 * @return the user id of this news flag
	 */
	public long getUserId();

	/**
	 * Sets the user id of this news flag.
	 *
	 * @param userId the user id of this news flag
	 */
	public void setUserId(long userId);

	/**
	 * Gets the user uuid of this news flag.
	 *
	 * @return the user uuid of this news flag
	 * @throws SystemException if a system exception occurred
	 */
	public String getUserUuid() throws SystemException;

	/**
	 * Sets the user uuid of this news flag.
	 *
	 * @param userUuid the user uuid of this news flag
	 */
	public void setUserUuid(String userUuid);

	/**
	 * Gets the create date of this news flag.
	 *
	 * @return the create date of this news flag
	 */
	public Date getCreateDate();

	/**
	 * Sets the create date of this news flag.
	 *
	 * @param createDate the create date of this news flag
	 */
	public void setCreateDate(Date createDate);

	/**
	 * Gets the entry id of this news flag.
	 *
	 * @return the entry id of this news flag
	 */
	public long getEntryId();

	/**
	 * Sets the entry id of this news flag.
	 *
	 * @param entryId the entry id of this news flag
	 */
	public void setEntryId(long entryId);

	/**
	 * Gets the value of this news flag.
	 *
	 * @return the value of this news flag
	 */
	public int getValue();

	/**
	 * Sets the value of this news flag.
	 *
	 * @param value the value of this news flag
	 */
	public void setValue(int value);

	/**
	 * Gets a copy of this news flag as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
	 *
	 * @return the escaped model instance
	 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
	 */
	public NewsFlag toEscapedModel();

	public boolean isNew();

	public void setNew(boolean n);

	public boolean isCachedModel();

	public void setCachedModel(boolean cachedModel);

	public boolean isEscapedModel();

	public void setEscapedModel(boolean escapedModel);

	public Serializable getPrimaryKeyObj();

	public ExpandoBridge getExpandoBridge();

	public void setExpandoBridgeAttributes(ServiceContext serviceContext);

	public Object clone();

	public int compareTo(NewsFlag newsFlag);

	public int hashCode();

	public String toString();

	public String toXmlString();
}